<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a {
            width: 200px;
            height: 200px;
            border: 1px solid #000;
            margin: 100px;
        }
    </style>
</head>

<body>

    <div class="a"></div>

    <script src="../js/jquery.min.js"></script>
    <script>

        // width()         css的width
        // innerWidth()    clientWidth
        // outerWidth()    offsetWidth


        // 偏移坐标   offset     offsetLeft / offsetTop
        //    {left : , top : }


        const res = $('.a').offset()
        console.log(res)
    </script>

</body>

</html>